package com.eatme.web.sys.workflow.activiti.service;

import com.eatme.web.app.article.dao.ActivitiDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Component("activitiServiceImpl")
public class ActivitiService {


    // TODO mybatis=> jpa
//    @Autowired
//    ActivitiDao activitiDao;

    public List<HashMap<String, Object>> getProcessInstance(String processInstanceId) {
        // TODO mybatis=> jpa
        // return activitiDao.selectRecord(processInstanceId);
        return new ArrayList<>();

    }

    public int save(List<HashMap<String, Object>> listMap) {
        // TODO mybatis=> jpa
        // return activitiDao.save(listMap);
        return 1;
    }
    public int delete(String PROC_DEF_ID) {
        // TODO mybatis=> jpa
        // return activitiDao.delete(PROC_DEF_ID);
        return 1;
    }
}
